package com.szitrus.smp.scalseal.exception;

/**
 * 描述：业务异常
 *
 * @author ssl
 * @create 2020/09/21 14:08
 */
public class BusinessException extends Exception {
    private ErrorCodeEnum errorCode;

    public BusinessException(ErrorCodeEnum errorCode) {
        super();
        this.errorCode = errorCode;
    }

    public BusinessException(ErrorCodeEnum errorCode, Throwable cause) {
        super(cause);
        this.errorCode = errorCode;
    }

    public ErrorCodeEnum getErrorCode() {
        return errorCode;
    }
}
